import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'

Vue.use(VueRouter)

import Home from '../views/home/Home.vue'
import Mind from '../views/mind/Mind.vue'
import Music from '../views/music/Music.vue'
import BookMarks from '../views/bookmarks/BookMarks.vue'

  const routes: Array<RouteConfig> = [
    {
      path: '',
      redirect: '/mind'
    },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
    {
      path: '/mind',
      name: 'Mind',
      component: Mind
    },
    {
      path: '/music',
      name: 'Music',
      component: Music
    },
    {
      path: '/bookmarks',
      name: 'BookMarks',
      component: BookMarks
    }

]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
